package cn.wolfcode.luowowo.article.query;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 目的地的范围映射类
 */
@Getter
@Setter
public class DestinationSearchCondition implements Serializable{

    //旅游天数映射
    public static final Map<Long, DestinationSearchCondition> TRAVEL_DAY = new HashMap<>();

    static {
        TRAVEL_DAY.put(-1L, new DestinationSearchCondition(0, 1000));
        TRAVEL_DAY.put(1L, new DestinationSearchCondition(0, 3));
        TRAVEL_DAY.put(2L, new DestinationSearchCondition(4, 5));
        TRAVEL_DAY.put(3L, new DestinationSearchCondition(6, 9));
        TRAVEL_DAY.put(4L, new DestinationSearchCondition(10, 1000));
    }

    private int min;
    private int max;

    public DestinationSearchCondition(int min, int max) {
        this.min = min;
        this.max = max;
    }
}
